package hari2.latihan;

import java.util.*;

public class ListVsArray {
	public static void main(String[] args) {
		Person pData = new Person();
		pData.setName("Mpu Tantular");
		pData.setPhone("888-888");
		
		Person pData1 = new Person();
		pData.setName("Ken Arok");
		pData.setPhone("123-456");
		
		Person pData2 = new Person();
		pData.setName("Gajah Mada");
		pData.setPhone("0808-0808");
		
		//buat array person
		Person[] arrayPerson = new Person[]{pData, pData1, pData2};
		
		//konversi dari array menjadi List
		List<Person> personList = new ArrayList<Person>(); 
		
		System.out.println(personList[i]);
}}
